package com.xieyingwangluo.yxpart.bean;

import com.xieyingwangluo.yxpart.entity.BlacklistModel;
import com.xieyingwangluo.yxpart.entity.UserModel;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class User2Black implements Serializable {
    private String noid;//用户编号UUID
    private String tel;//电话
    private String name;//昵称
    private String head_img;//头像
    private Integer intg;//积分
    private Integer state;//状态
    private Integer vip;//会员
    private Date create_time;//注册时间
    private BlacklistModel blacklistModel;

    public User2Black(UserModel userModel) {
        noid = userModel.getNoid();
        tel = userModel.getTel();
        name = userModel.getName();
        head_img = userModel.getHead_img();
        intg = userModel.getIntg();
        state = userModel.getState();
        vip = userModel.getVip();
        create_time = userModel.getCreate_time();
    }
}
